package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetSystemDepartmentMapper;
import com.ruoyi.system.domain.HatchetSystemDepartment;
import com.ruoyi.system.service.IHatchetSystemDepartmentService;
import com.ruoyi.common.support.Convert;

/**
 * 代理商系统用户 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-14
 */
@Service
public class HatchetSystemDepartmentServiceImpl implements IHatchetSystemDepartmentService 
{
	@Autowired
	private HatchetSystemDepartmentMapper hatchetSystemDepartmentMapper;

	/**
     * 查询代理商系统用户信息
     * 
     * @param iD 代理商系统用户ID
     * @return 代理商系统用户信息
     */
    @Override
	public HatchetSystemDepartment selectHatchetSystemDepartmentById(String iD)
	{
	    return hatchetSystemDepartmentMapper.selectHatchetSystemDepartmentById(iD);
	}
	
	/**
     * 查询代理商系统用户列表
     * 
     * @param hatchetSystemDepartment 代理商系统用户信息
     * @return 代理商系统用户集合
     */
	@Override
	public List<HatchetSystemDepartment> selectHatchetSystemDepartmentList(HatchetSystemDepartment hatchetSystemDepartment)
	{
	    return hatchetSystemDepartmentMapper.selectHatchetSystemDepartmentList(hatchetSystemDepartment);
	}
	
    /**
     * 新增代理商系统用户
     * 
     * @param hatchetSystemDepartment 代理商系统用户信息
     * @return 结果
     */
	@Override
	public int insertHatchetSystemDepartment(HatchetSystemDepartment hatchetSystemDepartment)
	{
	    return hatchetSystemDepartmentMapper.insertHatchetSystemDepartment(hatchetSystemDepartment);
	}
	
	/**
     * 修改代理商系统用户
     * 
     * @param hatchetSystemDepartment 代理商系统用户信息
     * @return 结果
     */
	@Override
	public int updateHatchetSystemDepartment(HatchetSystemDepartment hatchetSystemDepartment)
	{
	    return hatchetSystemDepartmentMapper.updateHatchetSystemDepartment(hatchetSystemDepartment);
	}

	/**
     * 删除代理商系统用户对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetSystemDepartmentByIds(String ids)
	{
		return hatchetSystemDepartmentMapper.deleteHatchetSystemDepartmentByIds(Convert.toStrArray(ids));
	}
	
}
